#ifndef SOCKET_EVENT_HANDLER_H
#define SOCKET_EVENT_HANDLER_H

#include "umsp.h"
#define NETWORK_CONNECTING 0
#define NETWORK_CONNECTED 1
#define NETWORK_DISCONNECT 2
#define NETWORK_SHUTDOWN 3

typedef struct ChannelHandler{
    Dispatcher dispatcher;
    void* channel;
    void* channelBuffer;
    volatile int connectState;
    void* sendEventChecker;
    ChannelHandler(){
        memset(this, 0, sizeof(ChannelHandler));
    }
}ChannelHandler;
#endif //SOCKET_EVENT_HANDLER_H